package com.lysj.food.food.domain;

import com.lysj.admin.utils.spring.foundation.base.BaseEntity;
import com.lysj.admin.utils.validation.annotation.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Created by wtl on 2019-03-19 16:00:45
 * @description 菜品属性详情
 */
@Data
@Entity
@EqualsAndHashCode(callSuper=true)
@Table(name = "lysj_food_food_attribute_detail")
public class FoodAttributeDetail extends BaseEntity {

    private String storeId; // 门店id

    @NotBlank(message = "参数错误")
    private String foodAttributeId; // 菜品属性id

    @NotBlank(message = "名称不能为空")
    private String name; // 重写name

}